package com.gmgx.controller;

import com.gmgx.service.TeacherService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class TeacherController {
    @Resource
    private TeacherService teacherService;

    public TeacherController() {
        System.out.println("TeacherController的无参构造");
    }
    public boolean login(String username, String password){
        return teacherService.login(username,password);
    }
}
